package com.xc.ezplan.admin.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import com.xc.ezplan.core.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author lixingchen
 * @date 2022/11/15
 * @description 后台角色表
 */
@TableName(value ="admin_role")
@Data
@ApiModel(description = "角色实体")
@EqualsAndHashCode(callSuper = true)
public class AdminRole extends BaseEntity {
    /**
     * 角色ID
     */
    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "角色ID")
    private Long id;

    /**
     * 角色名
     */
    @ApiModelProperty(value = "角色名")
    private String name;

    /**
     * 身份标识
     */
    @ApiModelProperty(value = "身份标识")
    private String identity;

    /**
     * 角色级别
     */
    @ApiModelProperty(value = "角色级别")
    private Integer level;

    /**
     * 角色描述
     */
    @ApiModelProperty(value = "角色描述")
    private String description;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}